package com.tms.app.tms.receiver;

import com.tms.app.tms.app.Constant;
import com.tms.app.tms.app.MyApp;
import com.tms.app.tms.ui.base.presenter.AbsBaseListP;
import com.tms.app.tms.ui.base.presenter.AbsServicexUtils;
import com.tms.app.tms.utils.SharePreferenceUtil;

import org.xutils.http.RequestParams;

/**
 * Created by Administrator on 2018/1/15 0015.
 */

public class GeoFencePresenter  extends AbsBaseListP {

    /***
     *
     * @param stationExcId
     * @param arrivedTime
     * @param leaveTime
     */
    public void getTaskList(String stationExcId,String arrivedTime,String leaveTime){
        String token= SharePreferenceUtil.getToken(MyApp.getInstance().getApplicationContext());
        RequestParams params=new RequestParams(Constant.geoFence);
        params.addBodyParameter("token", token);
        params.addBodyParameter("station_id",stationExcId);
        params.addBodyParameter("arrived_time",arrivedTime);
        params.addBodyParameter("leave_time",leaveTime);
        getObjectFromServer(params);
    }
}
